package ms.maplestory.boot.enums;

import java.util.Arrays;

/**
 * 地图类型
 */
public enum FieldType {

    Default(0),
    Snowball(1),
    Tournament(3),
    Coconut(4),
    OXQuiz(5),
    PersonalTimeLimit(6),
    WaitingRoom(7),
    GuildBoss(8),
    LimitedView(9),
    MonsterCarnival(10),
    MonsterCarnivalRevive(11),
    AriantArena(13),
    Dojang(14),
    MonsterCarnivalS2_Game(15),
    MonsterCarnivalWaitingRoom(16),
    CookieHouse(17),
    Balrog(18),
    Battlefield(19),
    SpaceGAGA(20),
    Witchtower(21),
    AranTutorial(22),
    Massacre(23),
    MassacreResult(24),
    PartyRaid(25),
    PartyRaidBoss(26),
    PartyRaidResult(27),
    NoDragon(28),
    DynamicFoothold(29),
    EscortResult(31),
    HuntingAdballoon(32),
    KillCount(34),
    Wedding(60),
    WeddingPhoto(61);

    private byte value;

    FieldType(int value) {
        this.value = (byte)value;
    }

    public static FieldType getByValue(int value) {
        return Arrays.stream(values()).filter(ft -> ft.getValue() == value).findFirst().orElse(null);
    }

    public int getValue() {
        return value;
    }
}